//
//  NoteConstant.swift
//  poetry
//
//  Created by YL-Hong on 2022/12/29.
//

import Foundation
import UIKit

enum NoetMenuType:Int {
    case copy = 1
    case errata = 2 //勘误
    case line = 6 //划线
    case deLine = 7 //删除划线
    case write = 8
    
    case dotted_gobal_line = 0 //全局笔记虚线
    case dotted_user_line = 9 //自己的笔记
    
    case bg_color = 3 // 背景色
    case solid_line = 4 // 下划线 直线
    case wave_line = 5 // 下划线 波浪线
    
}

/// 波浪线配置
let WAVE_Line_Height:CGFloat = 5
var WAVE_Line_Y: CGFloat = 5
let WAVE_Line_W: CGFloat = 10 //ω越大周期越小波浪越密集


/// 动画时间
let DZM_READ_AD_TIME:TimeInterval = 0.2



/// 画线 遮挡 白色
let Note_Range_COLOR_White = UIColor.white

/// 选中颜色
let Note_Range_COLOR_C1DCF7 = UIColor(hexString: "#C1DCF7")

/// 笔记 全局 虚线 灰色
let Note_Text_GlobalDotted_Color_8F8F8F = UIColor(hexString: "#8F8F8F")

/// 笔记-底色
let Note_Text_bgColor_FAE3BA = UIColor(hexString: "#FAE3BA")

/// 笔记-直线 红色
let Note_Text_Line_COLOR_F04848 = UIColor(hexString: "#F04848")

/// 笔记-波浪线 橙色
let Note_Text_WaveLine_COLOR_F0C348 = UIColor(hexString: "#F0C348")

/// 笔记Font
let Note_Text_Content_Font22 =  UIFont.systemFont(ofSize: 22)

///  笔记内容 默认黑色
let Note_Text_Content_Color_070707 = UIColor.init(hexString: "#070707")

// MARK: 延迟执行

/// 延迟执行
func DelayHandle(_ execute:@escaping ()->Void) { DelayHandle(0.01, execute) }

/// 延迟执行
func DelayHandle(_ delay:TimeInterval, _ execute:@escaping ()->Void) {
    
    DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + delay, execute: execute)
}


/// 阅读View范围
let DZM_READ_VIEW_RECT:CGRect = CGRect(origin: CGPoint(x: 25, y: KsafeAreaNaviBarHeight), size: CGSize(width: kScreenWidth - 50, height: kScreenHeight - KsafeAreaNaviBarHeight))






